<template>
	<view class="reminder">
		<view class="new">
			<view>
				<view>#</view>
				<view>10</view>
				<view>预计 14:40 送达</view>
			</view>
			<view>已接单</view>
		</view>
		<view class="vImg"><image src="../../../static/home/xian.png" mode=""></image></view>
		<!-- 2 -->
		<view class="header">
			<view class="nav">
				<view>朱**</view>
				<view>
					<image src="../../../static/home/dingwei.png" mode=""></image>
					<image src="../../../static/home/dianhua.png" mode=""></image>
				</view>
			</view>
			<!-- 超级会员 -->
			<view>
				超级会员 · 近180天第5次下单 ·
				<text>用户上次评价</text>
			</view>

			<view>东平南路森林公园[10.31km]</view>
			<view class="divider"></view>
			<view>
				<view>备餐用时 29分16秒</view>
				<view>15点20分 已出餐</view>
			</view>
			<view class="divider"></view>
		</view>
		<view class="header_one">
			<!-- 催单的判断 -->
			<view>
				<view>16:22 用户第1次催单</view>
				<view @tap="RespondTo">回复用户</view>
			</view>
			<view class="navHeader">
				<view>13:52 待商家配送</view>
				<!-- 配送 -->
				<view>
					<view @tap="Pack">
						<view>收起进度</view>
						<image src="../../../static/home/jiantou.png" mode=""></image>
					</view>
					<view>查看路线</view>
					<view>确认送出</view>
				</view>

				<!-- 配送收起进度 -->
				<view v-if="schedule" class="folding">
					<view>15:51</view>
					<view>待商家配送</view>
				</view>

				<view class="divider"></view>
				<!-- 1件商品 -->
				<view class="newgoods">
					<view>1件商品</view>
					<view v-if="Launched == 0" @tap="anTrue">展开</view>
					<view v-else @tap="anFalse">收起</view>
				</view>
				<view v-if="visFalse" class="meal">
					<view class="Shredded">
						<view>青椒肉丝-小份[中辣+青辣 椒]</view>
						<view>x 1</view>
						<view>0.01</view>
					</view>
					<view class="Shredded">
						<view>牛肉盖浇饭</view>
						<view>x 1</view>
						<view>0.01</view>
					</view>
					<view class="divider"></view>
					<!-- 其他 -->

					<view style="margin-top:48upx">其他</view>
					<view>
						<view>餐盒费</view>
						<view>0.10</view>
					</view>
					<view>
						<view>配送费</view>
						<view>0.10</view>
					</view>
					<view class="divider"></view>
					<view>优惠</view>
					<view>
						<view>折扣商品</view>
						<view>0.10</view>
					</view>
					<view>
						<view>专享红包</view>
						<view>0.10</view>
					</view>
					<view class="divider"></view>

					<!-- 顾客实付 -->
					<view>顾客实付 ￥0.11</view>
				</view>
				<!-- 本单预计收入 -->
				<view class="sheet">
					<view>本单预计收入</view>
					<image src="../../../static/home/yiwen.png" mode=""></image>
					<view>已支付</view>
					<view>￥0.10</view>
				</view>
				<view class="vImg"><image src="../../../static/home/xian.png" mode=""></image></view>
				<!-- 订单号： -->
				<view class="order">
					<view>
						<view>订单号：</view>
						<view>202008111538</view>
						<view>下单时间：08-11 13:52</view>
					</view>
					<view></view>
					<view>
						<view style="margin-right: 30upx;">取消订单</view>
						<view>打印</view>
					</view>
				</view>
			</view>
		</view>
		<u-popup v-model="Packup" mode="bottom">
			<view class="Foodsold">
				<view>
					<view>外卖已送出</view>
					<view>正在烹饪</view>
					<view>天气原因</view>
					<view>人手不齐</view>
				</view>
				<view @tap="close">取消</view>
			</view>
		</u-popup>
	</view>
</template>
<script>
export default {

	data() {
		return {
			visFalse: false,
			Launched: 0,
			schedule: false, //配送收起进度
			Packup: false
		};
	},
    
	methods: {
		anTrue() {
			this.visFalse = true;
			this.Launched = 1;
		},
		anFalse() {
			this.visFalse = false;
			this.Launched = 0;
		},
		// 收起进度
		Pack() {
			this.schedule = !this.schedule;
		},
		// 回复用户
		RespondTo() {
			this.Packup = true;
		},
		close(){
			this.Packup = false;
		}
	}
};
</script>
<style lang="scss" scoped>
.reminder {
	height: 63vh;
	overflow-y: auto;
	margin: 24upx auto;
	background: $bg1-color;
	box-shadow: 0upx 0upx 15upx 1upx rgba(102, 102, 102, 0.16);
	.new {
		display: flex;
		align-items: center;
		justify-content: space-between;
		background: $bg1-color;
		& > view:nth-child(1) {
			display: flex;
			align-items: center;
			margin-top: 49upx;
			& > view:nth-child(1) {
				font-size: 26upx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: $bg2-color;
				margin-left: 46upx;
			}
			& > view:nth-child(2) {
				font-size: 56upx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: $bg2-color;
				margin-left: 12upx;
			}
			& > view:nth-child(3) {
				font-size: 30upx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: $bg4-color;
				margin-left: 27upx;
			}
		}
		& > view:nth-child(2) {
			font-size: 30upx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: $bg2-color;
			margin-top: 57upx;
			margin-right: 30upx;
		}
	}
	.vImg {
		background: $bg1-color;
		image {
			width: 100%;
			height: 6upx;
		}
	}
	.header {
		padding: 98upx 46upx 0upx 43upx;
		// padding-bottom: 47upx;
		background: $bg1-color;
		.nav {
			width: 100%;

			display: flex;
			align-items: center;
			justify-content: space-between;
			& > view:nth-child(1) {
				font-size: 35upx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: $bg2-color;
			}
			& > view:nth-child(2) {
				display: flex;
				align-items: center;
				& > image:nth-child(1) {
					width: 30upx;
					height: 33upx;
					margin-right: 40upx;
				}
				& > image:nth-child(2) {
					width: 33upx;
					height: 33upx;
				}
			}
		}
		// 超级会员
		& > view:nth-child(2) {
			font-size: 26upx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: $bg5-color;
			margin-top: 48upx;
			text {
				color: $bg-color;
			}
		}
		& > view:nth-child(3) {
			font-size: 26upx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: $bg6-color;
			margin-top: 23upx;
		}
		.divider {
			width: 100%;
			height: 1upx;
			background: $bg1-background;
			margin-top: 47upx;
		}
		& > view:nth-child(5) {
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin-top: 48upx;
			& > view:nth-child(1) {
				font-size: 36upx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: $bg2-color;
			}
			& > view:nth-child(2) {
				font-size: 28upx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: $bg1-color;
			}
		}
	}

	.header_one {
		background: $bg1-color;
		padding-bottom: 47upx;
		& > view:nth-child(1) {
			background: $bg8-background;
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 47upx 46upx 47upx 43upx;
			& > view:nth-child(1) {
				font-size: 36upx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: $bg2-color;
			}
			& > view:nth-child(2) {
				width: 180upx;
				height: 60upx;
				background: $bg-background;
				border-radius: 30upx;
				font-size: 28upx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: $bg1-color;
				display: flex;
				align-items: center;
				justify-content: center;
			}
		}

		.navHeader {
			padding: 0upx 46upx 0upx 43upx;
			& > view:nth-child(1) {
				font-size: 36upx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: $bg6-color;
				margin-top: 48upx;
			}
			& > view:nth-child(2) {
				display: flex;
				align-items: center;
				justify-content: space-between;
				margin-top: 39upx;

				& > view:nth-child(1) {
					display: flex;
					align-items: center;
					& > view:nth-child(1) {
						font-size: 28upx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						color: $bg-background;
					}
					image {
						width: 17upx;
						height: 12upx;
						margin-left: 11upx;
					}
				}
				& > view:nth-child(2) {
					width: 180upx;
					height: 60upx;
					border: 2upx solid $bg4-color;
					border-radius: 30upx;
					font-size: 28upx;
					font-family: Source Han Sans CN;
					font-weight: 500;
					color: $bg-background;
					display: flex;
					align-items: center;
					justify-content: center;
					margin-right: 11upx;
				}
				& > view:nth-child(3) {
					width: 180upx;
					height: 60upx;
					background: $bg4-color;
					display: flex;
					align-items: center;
					justify-content: center;
					border-radius: 30upx;
					color: $bg1-color;
					font-size: 28upx;
					font-family: Source Han Sans CN;
					font-weight: 500;
				}
			}
			// 进度
			.folding {
				display: flex;
				align-items: center;
				padding-top: 51upx;
				& > view:nth-child(1) {
					font-size: 28upx;
					font-family: Source Han Sans CN;
					font-weight: 400;
					color: $bg5-color;
				}
				& > view:nth-child(2) {
					font-size: 28upx;
					font-family: Source Han Sans CN;
					font-weight: 400;
					color: $bg5-color;
					margin-left: 46upx;
				}
			}
			.newgoods {
				display: flex;
				justify-content: space-between;
				align-items: center;
				margin-top: 48upx;
				& > view:nth-child(1) {
					font-size: 34upx;
					font-family: Source Han Sans CN;
					font-weight: 400;
					color: $bg2-color;
				}
				& > view:nth-child(2) {
					width: 126upx;
					height: 52upx;
					background: $bg2-background;
					border-radius: 26upx;
					font-size: 28upx;
					font-family: Source Han Sans CN;
					font-weight: 400;
					color: $bg4-color;
					display: flex;
					align-items: center;
					justify-content: center;
				}
			}
			.meal {
				.Shredded {
					display: flex;
					margin-top: 48upx;
					& > view:nth-child(1) {
						font-size: 30upx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						color: $bg2-color;
						flex: 4;
					}
					& > view:nth-child(2) {
						font-size: 30upx;
						font-family: Source Han Sans CN;
						font-weight: bold;
						color: $bg6-color;
						flex: 2;
					}
					& > view:nth-child(3) {
						font-size: 30upx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						color: $bg2-color;
						flex: 1;
						text-align: right;
					}
				}
				& > view:nth-child(4) {
					font-size: 28upx;
					font-family: Source Han Sans CN;
					font-weight: 400;
					color: $bg5-color;
				}
				& > view:nth-child(5) {
					margin-top: 33upx;
					display: flex;
					align-items: center;
					justify-content: space-between;
					& > view:nth-child(1) {
						font-size: 30upx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						color: $bg6-color;
					}
					& > view:nth-child(2) {
						font-size: 30upx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						color: $bg2-color;
					}
				}
				& > view:nth-child(6) {
					margin-top: 40upx;
					display: flex;
					align-items: center;
					justify-content: space-between;
					& > view:nth-child(1) {
						font-size: 30upx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						color: $bg6-color;
					}
					& > view:nth-child(2) {
						font-size: 30upx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						color: $bg2-color;
					}
				}
				& > view:nth-child(8) {
					font-size: 28upx;
					font-family: Source Han Sans CN;
					font-weight: 400;
					color: $bg5-color;
					margin-top: 48upx;
				}
				& > view:nth-child(9) {
					margin-top: 33upx;
					display: flex;
					align-items: center;
					justify-content: space-between;
					& > view:nth-child(1) {
						font-size: 30upx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						color: $bg6-color;
					}
					& > view:nth-child(2) {
						font-size: 30upx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						color: $bg2-color;
					}
				}
				& > view:nth-child(10) {
					margin-top: 40upx;
					display: flex;
					align-items: center;
					justify-content: space-between;
					& > view:nth-child(1) {
						font-size: 30upx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						color: $bg6-color;
					}
					& > view:nth-child(2) {
						font-size: 30upx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						color: $bg2-color;
					}
				}
				& > view:nth-child(12) {
					font-size: 32upx;
					font-family: Source Han Sans CN;
					font-weight: 400;
					color: $bg2-color;
					margin-top: 48upx;
					text-align: right;
				}
			}

			.sheet {
				display: flex;
				align-items: center;
				text-align: right;
				justify-content: flex-end;
				margin-top: 40upx;

				& > view:nth-child(1) {
					font-size: 30upx;
					font-family: Source Han Sans CN;
					font-weight: bold;
					color: $bg2-color;
				}
				image {
					width: 30upx;
					height: 30upx;
					margin-left: 15upx;
				}
				& > view:nth-child(3) {
					// width:70upx;
					height: 30upx;
					background: $bg3-background;
					font-size: 22upx;
					font-family: Source Han Sans CN;
					font-weight: 400;
					color: $bg1-color;
					margin-left: 46upx;
				}
				& > view:nth-child(4) {
					font-size: 30upx;
					font-family: Source Han Sans CN;
					font-weight: bold;
					color: $bg-color;
					margin-left: 24upx;
				}
			}
			.vImg {
				image {
					width: 100%;
					height: 6upx;
				}
			}
			.order {
				display: flex;
				align-items: center;
				margin-top: 47upx;
				& > view:nth-child(1) {
					font-size: 24upx;
					font-family: Source Han Sans CN;
					font-weight: 400;
					color: $bg5-color;
					flex: 1;
				}
				& > view:nth-child(2) {
					height: 97upx;
					width: 1upx;
					background: $bg4-background;
					border-radius: 1upx;
					margin-right: 60upx;
				}
				& > view:nth-child(3) {
					display: flex;
					align-items: center;
					& > view {
						font-size: 32upx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						color: $bg5-color;
					}
				}
			}
		}
	}

	/deep/.u-drawer-bottom {
		bottom: 0;
		left: 0;
		right: 0;
		background-color: #ffffff;
		background: none !important;
	}
	.Foodsold {
		padding-bottom: 20upx;
		& > view:nth-child(1) {
			width: 93%;
			background: $bg1-color;
			border-radius: 10upx;
			margin: 0 auto;
			& > view {
				font-size: 34upx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: rgba(51, 51, 51, 1);
				border-bottom: 1upx solid #edf0fa;
				padding-top: 31upx;
				padding-bottom: 31upx;
				text-align: center;
			}
		}
		& > view:nth-child(2) {
			width: 93%;
			background: $bg1-color;
			border-radius: 10upx;
			margin: 26upx auto;

			font-size: 34upx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: rgba(51, 51, 51, 1);
			padding-top: 30upx;
			padding-bottom: 30upx;
			text-align: center;
		}
	}
}
</style>
